package com.kx.yooli.kx.wechat.mapper.nplm;

import com.kx.yooli.kx.wechat.entity.nplm.CustInfo;
import com.kx.yooli.kx.wechat.entity.nplm.LoanRepayPlan;
import com.kx.yooli.kx.wechat.entity.nplm.OverdueCase;
import com.kx.yooli.kx.wechat.entity.repayment.ActiveRepayOperate;
import com.mybatisflex.annotation.UseDataSource;
import com.mybatisflex.core.BaseMapper;
import com.mybatisflex.core.query.QueryWrapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CustInfoMapper extends BaseMapper<CustInfo> {
    @UseDataSource("ds4")
    default CustInfo selectByCertNo(String idCard){
        return selectOneWithRelationsByQuery(QueryWrapper.create()
                .select()
                .from(CustInfo.class).where(CustInfo::getCertNo).eq(idCard));
    }
}
